Class L2NatEntryImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.L2NatEntryImpl
All Implemented Interfaces:
IPCData, L2NatEntry

public class L2NatEntryImpl extends IPCDataImpl implements L2NatEntry
  • Field Details

    • mask

      protected IPAddress mask
    • activeCount

      protected int activeCount
    • totalCount

      protected int totalCount
    • direction

      protected int direction
  • Constructor Details

    • L2NatEntryImpl

      public L2NatEntryImpl()
  • Method Details

    • getMask

      public IPAddress getMask()
      Specified by:
      getMask in interface L2NatEntry
      Returns:
      IPAddress Returns a IPAddress
    • setMask

      public void setMask(IPAddress mask)
      Specified by:
      setMask in interface L2NatEntry
      Parameters:
      mask - Takes in a parameter of mask
    • getActiveCount

      public int getActiveCount()
      Specified by:
      getActiveCount in interface L2NatEntry
      Returns:
      int Returns a int
    • setActiveCount

      public void setActiveCount(int activeCount)
      Specified by:
      setActiveCount in interface L2NatEntry
      Parameters:
      activeCount - Takes in a parameter of activeCount
    • getTotalCount

      public int getTotalCount()
      Specified by:
      getTotalCount in interface L2NatEntry
      Returns:
      int Returns a int
    • setTotalCount

      public void setTotalCount(int totalCount)
      Specified by:
      setTotalCount in interface L2NatEntry
      Parameters:
      totalCount - Takes in a parameter of totalCount
    • getDirection

      public int getDirection()
      Specified by:
      getDirection in interface L2NatEntry
      Returns:
      int Returns a int
    • setDirection

      public void setDirection(int direction)
      Specified by:
      setDirection in interface L2NatEntry
      Parameters:
      direction - Takes in a parameter of direction
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object